Optimal. Leaf size=94 \[ \frac {1}{8} \sqrt {x^4+5 x^2+3} \left (6 x^2+23\right )+\frac {1}{16} \tanh ^{-1}\left (\frac {2 x^2+5}{2 \sqrt {x^4+5 x^2+3}}\right )-\sqrt {3} \tanh ^{-1}\left (\frac {5 x^2+6}{2 \sqrt {3} \sqrt {x^4+5 x^2+3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {1251, 814, 843, 621, 206, 724} \[ \frac {1}{8} \sqrt {x^4+5 x^2+3} \left (6 x^2+23\right )+\frac {1}{16} \tanh ^{-1}\left (\frac {2 x^2+5}{2 \sqrt {x^4+5 x^2+3}}\right )-\sqrt {3} \tanh ^{-1}\left (\frac {5 x^2+6}{2 \sqrt {3} \sqrt {x^4+5 x^2+3}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 621
Rule 724
Rule 814
Rule 843
Rule 1251
Rubi steps
\begin {align*} \int \frac {\left (2+3 x^2\right ) \sqrt {3+5 x^2+x^4}}{x} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {(2+3 x) \sqrt {3+5 x+x^2}}{x} \, dx,x,x^2\right )\\ &=\frac {1}{8} \left (23+6 x^2\right ) \sqrt {3+5 x^2+x^4}-\frac {1}{8} \operatorname {Subst}\left (\int \frac {-24-\frac {x}{2}}{x \sqrt {3+5 x+x^2}} \, dx,x,x^2\right )\\ &=\frac {1}{8} \left (23+6 x^2\right ) \sqrt {3+5 x^2+x^4}+\frac {1}{16} \operatorname {Subst}\left (\int \frac {1}{\sqrt {3+5 x+x^2}} \, dx,x,x^2\right )+3 \operatorname {Subst}\left (\int \frac {1}{x \sqrt {3+5 x+x^2}} \, dx,x,x^2\right )\\ &=\frac {1}{8} \left (23+6 x^2\right ) \sqrt {3+5 x^2+x^4}+\frac {1}{8} \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {5+2 x^2}{\sqrt {3+5 x^2+x^4}}\right )-6 \operatorname {Subst}\left (\int \frac {1}{12-x^2} \, dx,x,\frac {6+5 x^2}{\sqrt {3+5 x^2+x^4}}\right )\\ &=\frac {1}{8} \left (23+6 x^2\right ) \sqrt {3+5 x^2+x^4}+\frac {1}{16} \tanh ^{-1}\left (\frac {5+2 x^2}{2 \sqrt {3+5 x^2+x^4}}\right )-\sqrt {3} \tanh ^{-1}\left (\frac {6+5 x^2}{2 \sqrt {3} \sqrt {3+5 x^2+x^4}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 92, normalized size = 0.98 \[ \frac {1}{16} \left (2 \sqrt {x^4+5 x^2+3} \left (6 x^2+23\right )+\tanh ^{-1}\left (\frac {2 x^2+5}{2 \sqrt {x^4+5 x^2+3}}\right )-16 \sqrt {3} \tanh ^{-1}\left (\frac {5 x^2+6}{2 \sqrt {3} \sqrt {x^4+5 x^2+3}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 95, normalized size = 1.01 \[ \frac {1}{8} \, \sqrt {x^{4} + 5 \, x^{2} + 3} {\left (6 \, x^{2} + 23\right )} + \sqrt {3} \log \left (\frac {25 \, x^{2} - 2 \, \sqrt {3} {\left (5 \, x^{2} + 6\right )} - 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} {\left (5 \, \sqrt {3} - 6\right )} + 30}{x^{2}}\right ) - \frac {1}{16} \, \log \left (-2 \, x^{2} + 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} - 5\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.48, size = 98, normalized size = 1.04 \[ \frac {1}{8} \, \sqrt {x^{4} + 5 \, x^{2} + 3} {\left (6 \, x^{2} + 23\right )} + \sqrt {3} \log \left (\frac {x^{2} + \sqrt {3} - \sqrt {x^{4} + 5 \, x^{2} + 3}}{x^{2} - \sqrt {3} - \sqrt {x^{4} + 5 \, x^{2} + 3}}\right ) - \frac {1}{16} \, \log \left (2 \, x^{2} - 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} + 5\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 85, normalized size = 0.90 \[ -\sqrt {3}\, \arctanh \left (\frac {\left (5 x^{2}+6\right ) \sqrt {3}}{6 \sqrt {x^{4}+5 x^{2}+3}}\right )+\frac {\ln \left (x^{2}+\frac {5}{2}+\sqrt {x^{4}+5 x^{2}+3}\right )}{16}+\frac {3 \left (2 x^{2}+5\right ) \sqrt {x^{4}+5 x^{2}+3}}{8}+\sqrt {x^{4}+5 x^{2}+3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.50, size = 89, normalized size = 0.95 \[ \frac {3}{4} \, \sqrt {x^{4} + 5 \, x^{2} + 3} x^{2} - \sqrt {3} \log \left (\frac {2 \, \sqrt {3} \sqrt {x^{4} + 5 \, x^{2} + 3}}{x^{2}} + \frac {6}{x^{2}} + 5\right ) + \frac {23}{8} \, \sqrt {x^{4} + 5 \, x^{2} + 3} + \frac {1}{16} \, \log \left (2 \, x^{2} + 2 \, \sqrt {x^{4} + 5 \, x^{2} + 3} + 5\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.43, size = 86, normalized size = 0.91 \[ \frac {\ln \left (\sqrt {x^4+5\,x^2+3}+x^2+\frac {5}{2}\right )}{16}-\sqrt {3}\,\ln \left (\frac {3}{x^2}+\frac {\sqrt {3}\,\sqrt {x^4+5\,x^2+3}}{x^2}+\frac {5}{2}\right )+\frac {3\,\left (\frac {x^2}{2}+\frac {5}{4}\right )\,\sqrt {x^4+5\,x^2+3}}{2}+\sqrt {x^4+5\,x^2+3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (3 x^{2} + 2\right ) \sqrt {x^{4} + 5 x^{2} + 3}}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________